﻿namespace Cmn
{
    using System;
    using System.Text;

    public class Base64
    {
        public static string Decode(string decryptString)
        {
            byte[] bytes = Convert.FromBase64String(decryptString);
            return Encoding.UTF8.GetString(bytes);
        }

        public static string Encode(string encryptString)
        {
            return Convert.ToBase64String(Encoding.UTF8.GetBytes(encryptString));
        }
    }
}

